package com.ruoyi.system.service.impl;


import com.ruoyi.system.domain.AiChat;
import com.ruoyi.system.mapper.AiChatMapper;
import com.ruoyi.system.service.AiChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;


/**
 * ai对话服务层
 *
 * @author wyj
 * @date 2025-02-26
 */
@Service
public class AiChatServiceImpl implements AiChatService {
    @Autowired
    private AiChatMapper aiChatMapper;

    @Override
    public int insertAiChat(AiChat aiChat) {
        aiChat.setChatDate(new Date());
        return aiChatMapper.insertAiChat(aiChat);
    }
    


}
